function caballitoMar::onLevelLoaded(%this, %scenegraph)
{
   $caballitoMarVar = %this;
   moveMap.bindCmd(keyboard, "w", "", "functionGoUp();");
   moveMap.bindCmd(keyboard, "a", "", "functionGoLeft();");
   moveMap.bindCmd(keyboard, "d", "", "functionGoRigth();");
   moveMap.bindCmd(keyboard, "s", "", "functionGoDown();");
}
function onCollition(){

}
function functionGoUp()
{
	$caballitoMarVar.setPositionY($caballitoMarVar.getPositionY() - 1);
}
function functionGoLeft()
{
	$caballitoMarVar.setPositionX($caballitoMarVar.getPositionX() - 1);
}
function functionGoRigth()
{
	$caballitoMarVar.setPositionX($caballitoMarVar.getPositionX() + 1);
}
function functionGoDown()
{
	$caballitoMarVar.setPositionY($caballitoMarVar.getPositionY() + 1);
}